Lapo Calamandrei [Fri, 27 Jun 2014 11:15:54 +0000 (13:15 +0200)]
Adwaita: .flat button styling
Matthias Clasen [Thu, 26 Jun 2014 03:17:26 +0000 (23:17 -0400)]
GtkFrame: Use style classes for shadow
Use the FLAT style class when shadow is set to none, and
let the theme render the appropriate border.
https://bugzilla.gnome.org/show_bug.cgi?id=732256
Matthias Clasen [Thu, 26 Jun 2014 02:08:27 +0000 (22:08 -0400)]
GtkEntry: Make has-frame use style classes
Instead of code that internally does weird things, use the FLAT style
class if has-frame is FALSE and remove it otherwise.
Based on a patch by Benjamin Otte.
https://bugzilla.gnome.org/show_bug.cgi?id=732256
fixup entry
Matthias Clasen [Fri, 27 Jun 2014 01:59:06 +0000 (21:59 -0400)]
GtkButton: Use FLAT style class
This commit makes button always draw background and frame.
Buttons with relief none get a new style class, FLAT, which
allows themes to style these buttons as they like.
We also (finally) mark GTK_RELIEF_HALF as deprecated. It
has never done anything different from GTK_RELIEF_NORMAL.
https://bugzilla.gnome.org/show_bug.cgi?id=732256
Matthias Clasen [Fri, 27 Jun 2014 02:00:29 +0000 (22:00 -0400)]
Add a FLAT style class
This will be used for frame-less buttons and frames in the future.
Matthias Clasen [Thu, 26 Jun 2014 03:43:35 +0000 (23:43 -0400)]
GtkScrolledWindow: Use style classes for shadow
Translate shadow != None into the FRAME style class.
This doesn't change the style classes used for drawing,
it only sets the style class permanently instead of
saving and restoring in draw().
https://bugzilla.gnome.org/show_bug.cgi?id=732256
Matthias Clasen [Thu, 26 Jun 2014 03:42:47 +0000 (23:42 -0400)]
GtkViewport: Use style classes for shadow
Translate shadow != None into the FRAME style class.
This doesn't change the style classes used for drawing,
it only sets the style class permanently instead of
saving and restoring in draw().
https://bugzilla.gnome.org/show_bug.cgi?id=732256
Jasper St. Pierre [Thu, 26 Jun 2014 22:22:42 +0000 (18:22 -0400)]
gtk: Don't use GObjectClass.constructor
Use the newer constructed instead, which has a fast path in GObject.
Matthias Clasen [Thu, 26 Jun 2014 21:58:43 +0000 (17:58 -0400)]
Flip GTK_STOCK_CLEAR icon in rtl locales
Adwaita now includes an edit-clear-rtl variant, so lets use it.
Jasper St. Pierre [Thu, 26 Jun 2014 19:05:41 +0000 (15:05 -0400)]
gtkwindow: Remove a dumb invalidate_rect from our configure_event
We shouldn't invalidate the entire window when we receive a
ConfigureNotify. That's just broken.
Jasper St. Pierre [Thu, 26 Jun 2014 19:00:59 +0000 (15:00 -0400)]
gtkwindow: Remove a vestigal line of painting for OR windows
Since we have a paint clock, we shouldn't be sending out EXPOSE events
for OR windows inside the ALLOCATE cycle. The idea here was that we
would have to wait for a map to get an OR window to paint to, but since
then this has been abstracted away inside GDK and the paint clock.
Jasper St. Pierre [Thu, 26 Jun 2014 18:41:02 +0000 (14:41 -0400)]
gtkwindow: Remove an unnecessary set of grip setting
We already update the grip position in _gtk_window_set_allocation, which
is done through the size_allocate above. Receiving a ConfigureNotify
also won't ever change a grip's visibility, so there's no point in
refreshing it.
Jasper St. Pierre [Thu, 26 Jun 2014 18:17:56 +0000 (14:17 -0400)]
treeview: Remove configure-event handler as well
Jasper St. Pierre [Thu, 26 Jun 2014 18:16:26 +0000 (14:16 -0400)]
colorplane: Don't connect to the configure-event signal
We want to stop people from using configure events
entirely. GtkDrawingArea synthesizes a configure event, but we can just
make the only user of this functionality stop it, and correct the
documentation to not mention it.
Emmanuele Bassi [Thu, 26 Jun 2014 18:23:52 +0000 (19:23 +0100)]
docs: Show examples of how to use templates API
The template documentation is lacking inlined examples on how to use the
templates API, like binding children and callbacks. This makes looking
for best practices a bit harder than it ought to be, for a feature this
useful.
Jasper St. Pierre [Thu, 26 Jun 2014 14:30:29 +0000 (10:30 -0400)]
gtkwindow: Force CSD on Wayland
We rely on CSD here on the Wayland platform and giving the opportunity
to turn it off doesn't make too much sense.
Rico Tzschichholz [Thu, 26 Jun 2014 12:04:42 +0000 (14:04 +0200)]
icon-browser: Add iconbrowser.gresource.xml to EXTRA_DIST
Matthias Clasen [Wed, 25 Jun 2014 20:23:57 +0000 (16:23 -0400)]
Disable deprecation warnings in tests
We want to test deprecated properties, so failing the tests with
warnings is not productive.
Piotr Drąg [Wed, 25 Jun 2014 18:05:56 +0000 (20:05 +0200)]
Updated POTFILES.skip
Matthias Clasen [Wed, 25 Jun 2014 17:52:18 +0000 (13:52 -0400)]
icon-theme: Add another lookup order test
This tests rtl lookup order for non-symbolic icons.
Matthias Clasen [Wed, 25 Jun 2014 16:36:20 +0000 (12:36 -0400)]
icon-browser: drop icons that were removed from Adwaita
These non-standard icons were dropped from Adwaita. Eventually,
the icon-browser code should be changed to show all standard
icons + whatever is actually in the icon theme, instead of
hardcoding a list of non-standard names.
Carlos Garnacho [Tue, 24 Jun 2014 17:08:51 +0000 (19:08 +0200)]
gesture: Consume the event triggering ::begin if reset within the handler
If the event triggers GtkGesture::begin, and the handler ends up resetting
the gesture (say, due to taking a grab somewhere else within the handler),
still take the event as "managed", as it actually triggered recognition,
even if just to end abruptly.
https://bugzilla.gnome.org/show_bug.cgi?id=731711
Matthias Clasen [Wed, 25 Jun 2014 10:50:39 +0000 (06:50 -0400)]
icon-browser: fix a typo
Matthias Clasen [Wed, 25 Jun 2014 02:24:46 +0000 (22:24 -0400)]
icon browser: drop an misnamed icon
small-progress was just my local test icon for scaling of spinners.
Matthias Clasen [Tue, 24 Jun 2014 22:36:29 +0000 (18:36 -0400)]
Add an icon browser
This is meant to help app authors choose the right icons.
Richard Hughes [Tue, 24 Jun 2014 20:17:39 +0000 (21:17 +0100)]
Makefile: Actually dist the high-contrast and dark test files
Lapo Calamandrei [Tue, 24 Jun 2014 18:17:38 +0000 (20:17 +0200)]
Adwaita: add inconsistent hover check/radios
Matthias Clasen [Tue, 24 Jun 2014 17:30:33 +0000 (13:30 -0400)]
Another forgotten file
Matthias Clasen [Tue, 24 Jun 2014 17:23:29 +0000 (13:23 -0400)]
Forgotten file
Matthias Clasen [Tue, 24 Jun 2014 17:21:05 +0000 (13:21 -0400)]
GtkButton: Queue a redraw on enter/leave
We currently getting a redraw for buttons, but that is just luck.
Better to make it explicit.
Matthias Clasen [Tue, 24 Jun 2014 17:12:56 +0000 (13:12 -0400)]
Drop standalone pixbuf-demo
The same demo is included in gtk3-demo. One copy is enough.
Matthias Clasen [Tue, 24 Jun 2014 17:03:47 +0000 (13:03 -0400)]
GtkToggleButton: Queue a redraw on enter/leave
Without this, we don't redraw consistently for prelight state changes.
Matthias Clasen [Tue, 24 Jun 2014 15:45:57 +0000 (11:45 -0400)]
Bump version
Matthias Clasen [Tue, 24 Jun 2014 11:54:10 +0000 (07:54 -0400)]
3.13.3
Matthias Clasen [Tue, 24 Jun 2014 12:21:29 +0000 (08:21 -0400)]
Avoid deprecation warnings
We know regions are deprecated, no need to warn about it here.
Lapo Calamandrei [Tue, 24 Jun 2014 12:04:26 +0000 (14:04 +0200)]
Adwaita: set the correct indicator color for reorderable hover tabs
Lapo Calamandrei [Tue, 24 Jun 2014 11:42:13 +0000 (13:42 +0200)]
Adwaita: only side borders for reorderable tabs
Adam Dingle [Tue, 24 Jun 2014 10:48:47 +0000 (06:48 -0400)]
Require GLib 2.41.1 (for G_PARAM_EXPLICIT_NOTIFY)
Lapo Calamandrei [Tue, 24 Jun 2014 08:38:03 +0000 (10:38 +0200)]
Adwaita: added active state to the switch slider
Lapo Calamandrei [Tue, 24 Jun 2014 08:28:19 +0000 (10:28 +0200)]
Adwaita: comment out button separators removal
...after reading #gnome-design scrollbark, since a consensus on how to achieve
this has not been reached yet.
Lapo Calamandrei [Tue, 24 Jun 2014 08:25:49 +0000 (10:25 +0200)]
Adwaita: fix view check/radio selected state.
Lapo Calamandrei [Tue, 24 Jun 2014 07:28:29 +0000 (09:28 +0200)]
Adwaita: disable separators in buttons
Colomban Wendling [Tue, 24 Jun 2014 01:37:59 +0000 (03:37 +0200)]
gdkwindow: Don't leak the surface in gdk_cairo_create()
Matthias Clasen [Tue, 24 Jun 2014 01:24:41 +0000 (21:24 -0400)]
Add a test for async icon loading
Jasper St. Pierre [Mon, 23 Jun 2014 21:55:55 +0000 (17:55 -0400)]
gtkmain: Rearrange code
Prevent a segfault in unknown circumstances, and break the ignore
deprecations wrapper out from the if statement so that we don't
cover too much ground by accident.
Jasper St. Pierre [Mon, 23 Jun 2014 21:36:43 +0000 (17:36 -0400)]
gtkwidget: Actually mark set_double_buffered as deprecated
Jasper St. Pierre [Mon, 23 Jun 2014 21:36:16 +0000 (17:36 -0400)]
Revert "gtkwidget: Widgets are now always double-buffered"
This reverts commit
b875572f2af532b0e8f2dc368f8dc824b5f92724.
Apps like Abiword, gnumeric and gnome-chess, and toolkits like
ClutterGTK were all using this for various purposes, and this made them
break. Bring back this feature for now.
It still won't work under Wayland.
Jasper St. Pierre [Mon, 23 Jun 2014 21:33:14 +0000 (17:33 -0400)]
gdkwindow: Allow calling gdk_cairo_create outside of a "paint"
Apps had quite a bit of difficulty getting used to the new rules.
While we weren't expecting anything too deadly, it seemed that
gnumeric and Abiword both used gdk_cairo_create like this.
Jasper St. Pierre [Mon, 23 Jun 2014 20:15:48 +0000 (16:15 -0400)]
gdkwindow: Remove extra arguments from process_updates_recurse_helper
These can easily be calculated inside the function.
Jasper St. Pierre [Mon, 23 Jun 2014 20:12:45 +0000 (16:12 -0400)]
gdkwindow: Don't do some extra work
We can do an early return in some specific cases before we need to
create and clip a cairo region.
Jasper St. Pierre [Mon, 23 Jun 2014 20:11:56 +0000 (16:11 -0400)]
gdkwindow: Remove an unused variable
Jasper St. Pierre [Mon, 23 Jun 2014 16:29:55 +0000 (12:29 -0400)]
gdkwindow: Make the precondition of gdk_window_add_damage clearer
Jasper St. Pierre [Mon, 23 Jun 2014 16:23:48 +0000 (12:23 -0400)]
gdkwindow: Simplify check for damaging offscreen windows
If a window both has an impl and its impl_window is of type offscreen,
that must mean that it is the offscreen window, and the impl window is
itself. We can reduce the indirection here and make it more clear.
Jasper St. Pierre [Mon, 23 Jun 2014 16:22:33 +0000 (12:22 -0400)]
gdkwindow: Make gdk_window_add_damage more private
Matthias Clasen [Mon, 23 Jun 2014 16:20:59 +0000 (12:20 -0400)]
GtkIconTheme: Copy all fields in icon_info_dup
This functionality is only exercised by gnome-shell, currently.
Therefore, forgetting to copy a field here means an instant
gnome-shell crash :-(. More tests needed.
Matthias Clasen [Mon, 23 Jun 2014 16:13:22 +0000 (12:13 -0400)]
GtkIconTheme: Be more careful when warning
It sucks when printing a warning causes gnome-shell to crash,
so be more careful about icon names being NULL here.
Matthias Clasen [Mon, 23 Jun 2014 11:05:29 +0000 (07:05 -0400)]
GtkIconTheme: keep misplaced symbolics working
Recent changes made it a breaking mistake to install symbolic icons
of the wrong size into a theme directory, or into the legacy unthemed
icon location.
Since this change affects many apps, do the extra work to keep these
icons working, but emit warnings, in the hope that this will lead to
cleaning up the mess over time.
Matthias Clasen [Mon, 23 Jun 2014 02:04:00 +0000 (22:04 -0400)]
Move some comments around
Matthias Clasen [Sun, 22 Jun 2014 20:46:11 +0000 (16:46 -0400)]
Some documentation rewording
Matthias Clasen [Sun, 22 Jun 2014 18:12:29 +0000 (14:12 -0400)]
Adwaita: Use rtl variants of pan-end when needed
The -gtk-icontheme() function not have any automatism for
symbolic or rtl variants built-in, instead, we expect the theme
to use selectors to provide the right icon for each situation.
Matthias Clasen [Sun, 22 Jun 2014 17:32:50 +0000 (13:32 -0400)]
widget-factory: Fix another icon size problem
0 is still not a valid icon size.
Matthias Clasen [Sun, 22 Jun 2014 17:22:43 +0000 (13:22 -0400)]
win32: Drop remnants of def files
We no longer have .def files, so don't refer to them from the
win32 build machinery. Patch by Cilyan Olowen
Bastien Nocera [Thu, 19 Jun 2014 12:11:22 +0000 (14:11 +0200)]
placessidebar: Use symbolic name for symbolic icon
https://bugzilla.gnome.org/show_bug.cgi?id=731908
Matthias Clasen [Sun, 22 Jun 2014 16:10:46 +0000 (12:10 -0400)]
Docs: Reword deprecation notes
Mainly, make sure that deprecated properties are
documented as such. In this case: double-buffered.
Matthias Clasen [Sun, 22 Jun 2014 16:09:52 +0000 (12:09 -0400)]
notify test: Skip GtkWidget::double-buffered
This property is now deprecated, and ignored, thus: no notification.
Matthias Clasen [Fri, 20 Jun 2014 21:17:07 +0000 (17:17 -0400)]
widget-factory: Fix an icon size problem
0 is not a valid icon size, and setting it has unpredictable
results. Replace it by 1, which is the right icon size to use
in buttons.
Matthias Clasen [Fri, 20 Jun 2014 22:34:06 +0000 (18:34 -0400)]
GtkCellRendererPixbuf: Set force_scale_pixbuf
The recent icon theme scaling changes make the code more
sensitive to mis-sized icons (e.g. application icons in
the app chooser). A single row whose size gets blown out
of proportion by a big icon is never wanted in a list.
We can avoid this situation by telling GtkIconHelper to
force-scale the pixbuf to the requested size.
Matthias Clasen [Sun, 22 Jun 2014 15:14:41 +0000 (11:14 -0400)]
GtkIconHelper: use FORCE_SCALE when force_scale_pixbuf is set
When force_scale_pixbuf is set, the icon helper will scale the
icon to the requested size (either the pixel size, or the resolved
icon size), so we can just as well instruct the icon theme code
to do the scaling for us.
Matthias Clasen [Fri, 20 Jun 2014 19:52:48 +0000 (15:52 -0400)]
GtkIconTheme: Drop an unused variable
We no longer need a separate field for symbolic icon size,
now that we are using the directory size.
Matthias Clasen [Fri, 20 Jun 2014 19:47:00 +0000 (15:47 -0400)]
GtkIconTheme: Load symbolic icons at the same size
Reuse the scale information that we have from loading icons
normally, when loading a symbolic icon, so that we apply the
same size constraints.
This commit assumes that svgs have the nominal size of the
directory they are in, which will be true for all current
symbolic icons.
Matthias Clasen [Fri, 20 Jun 2014 18:30:36 +0000 (14:30 -0400)]
Adapt icontheme tests
With our new, improved icon theme spec compliance, some of the
tests need updates to their expected outcomes.
Matthias Clasen [Sun, 22 Jun 2014 15:01:43 +0000 (11:01 -0400)]
GtkIconInfo: Small struct packing improvement
This makes the GtkIconInfo struct a bit smaller.
Matthias Clasen [Fri, 20 Jun 2014 18:58:44 +0000 (14:58 -0400)]
GtkIconInfo: Drop an unused field
The GtkIconInfo threshold field was never used, so lets not
carry it around.
Matthias Clasen [Fri, 20 Jun 2014 18:17:47 +0000 (14:17 -0400)]
GtkIconTheme: Respect limits in theme dirs
Previously, we were taking thresholds and min/max sizes into
account when choosing the best theme dir, but when it came
to loading the icon, we always scaled icons from scalable
directories all the way, ignoring the min/max size limits.
This commit changes things around so that we now load icons
in Threshold directories at their nominal size, and scale
icons in Scalable directories only up to the specified limits.
To override this and keep the previous behaviour of scaling
all the way to the desired size, use the GTK_ICON_THEME_FORCE_SIZE
flag.
Jasper St. Pierre [Sun, 22 Jun 2014 13:28:13 +0000 (09:28 -0400)]
gdkwindow: Provide a default implementation of process_updates_recurse
As a quick code cleanup.
Jasper St. Pierre [Sun, 22 Jun 2014 13:26:01 +0000 (09:26 -0400)]
gdkwindow-broadway: Move the dirty flag setting to end_paint
This is where it belongs -- process_updates_recurse is the wrong place
for it.
Jasper St. Pierre [Sun, 22 Jun 2014 13:21:35 +0000 (09:21 -0400)]
gdkwindow: Move a variable closer to where it's used
To make the code clearer.
Jasper St. Pierre [Sun, 22 Jun 2014 13:21:19 +0000 (09:21 -0400)]
gdkwindow: Remove an unused variable
Matthias Clasen [Sun, 22 Jun 2014 01:34:50 +0000 (21:34 -0400)]
GtkSwitch: Implement hover for GtkSwitch
This makes switches more similar to other activatable widgets
like buttons or scales.
Jasper St. Pierre [Sat, 21 Jun 2014 22:43:28 +0000 (18:43 -0400)]
gdkwidow: Make queue_antiexpose optional
Jasper St. Pierre [Sat, 21 Jun 2014 22:36:51 +0000 (18:36 -0400)]
gdkwindow-win32: Remove queue_antiexpose implementation
Since the Win32 code never actually called InvalidateRgn or used the
Win32 update area at all, that meant the only thing that could possibly
invalidate the window was the Win32 window manager as part of scrolling
or resizing, which would also send it a WM_PAINT message.
But the WM_PAINT handling called BeginPaint / EndPaint, which clears the
update area completely! We also draw out-of-band, not directly when
handling WM_PAINT, so there's no way that the update area inside the
Win32 WM would match our local one.
There is no possible way that this queue_antiexpose implementation could
do anything. Remove it.
Jasper St. Pierre [Sat, 21 Jun 2014 22:26:41 +0000 (18:26 -0400)]
gdkevents-win32: Remove dead code
Jasper St. Pierre [Sat, 21 Jun 2014 22:03:56 +0000 (18:03 -0400)]
gdkwindow: Don't bother with a return parameter for queue_antiexpose
Standard refcounting works perfectly well. Don't give us the opportunity
for more memory leaks.
Jasper St. Pierre [Sat, 21 Jun 2014 22:01:40 +0000 (18:01 -0400)]
gdkwindow-broadway: Squash memory leak
We don't need to hang on to the update_area.
Jasper St. Pierre [Sat, 21 Jun 2014 21:59:48 +0000 (17:59 -0400)]
gdkwindow-broadway: Make queue_antiexpose implementation private
Jasper St. Pierre [Sat, 21 Jun 2014 21:29:08 +0000 (17:29 -0400)]
gdkwindow-wayland: Attach new buffers and submit damage in end_paint
process_updates_recurse is simply the wrong place for it to be.
Jasper St. Pierre [Sat, 21 Jun 2014 21:33:09 +0000 (17:33 -0400)]
gdkwindow-wayland: Rename listener -> frame_listener
Don't pollute the static namespace here.
Michael Catanzaro [Sat, 21 Jun 2014 17:15:42 +0000 (12:15 -0500)]
docs: add missing apostrophe
Jasper St. Pierre [Sat, 21 Jun 2014 15:25:16 +0000 (11:25 -0400)]
gdkwindow: Correct a signature
We removed the parameter from callers and from the implementation, but
not from the signature up top. I didn't notice because the branch I was
working on removed the signature entirely.
Jasper St. Pierre [Sat, 21 Jun 2014 14:33:40 +0000 (10:33 -0400)]
gdkwindow: Remove an extra region copy
This code is only called with the current paint region as its argument.
Instead of having to copy it and do a no-op intersect against itself,
just use the current paint directly.
Jasper St. Pierre [Sat, 21 Jun 2014 14:16:14 +0000 (10:16 -0400)]
gdkwindow: Clean up code
Introduce a temporary to make the code a bit more clear under these cases.
Jasper St. Pierre [Sat, 21 Jun 2014 14:16:58 +0000 (10:16 -0400)]
gdkwindow: Clean up formatting
Tabs to spaces, add some whitespace.
Jasper St. Pierre [Sat, 21 Jun 2014 13:58:20 +0000 (09:58 -0400)]
gdkwindow: Add some extra documentation to gdk_cairo_create
Mention the need to wrap the function inside
gdk_window_begin_paint_region and gdk_window_end_paint.
Benjamin Otte [Sat, 21 Jun 2014 13:38:38 +0000 (15:38 +0200)]
widgetpath: Deprecate regions
This is a foolowup to
d80bf0790d0903ba2825f306b6f7435529f922e2
Jasper St. Pierre [Sat, 21 Jun 2014 04:31:17 +0000 (00:31 -0400)]
gtkwidget: Add a warning about set_double_buffered
As requested on the mailing list.
Jasper St. Pierre [Sat, 21 Jun 2014 04:30:59 +0000 (00:30 -0400)]
testwindows: Remove another reference to set_double_buffered
Jasper St. Pierre [Sat, 21 Jun 2014 04:30:07 +0000 (00:30 -0400)]
gtktrayicon-x11: Stop using set_double_buffered
There's nothing better we can do for this case, now that we always
redirect drawing to a temporary pixmap. Maybe since this is already
X11-specific code, we should just do everything with Xlib directly.
Matthias Clasen [Sat, 21 Jun 2014 03:17:53 +0000 (23:17 -0400)]
Adwaita: Fix highlight on check buttons
The .button style class does not apply to check and radio
buttons, and .check only applies to menuitems.
Jasper St. Pierre [Sat, 21 Jun 2014 00:47:59 +0000 (20:47 -0400)]
gdkwindow: Squash a leak in the subsurface case
cairo_surface_create_for_rectangle takes a ref on the parent surface,
so we need to drop ours.
Rename get_window_surface to ref_window_surface to make the code more
clear and to stop this error from happening again.
Jasper St. Pierre [Sat, 21 Jun 2014 00:46:49 +0000 (20:46 -0400)]
gdkwindow: Don't create a subsurface if we don't need to
In the case we have a native window, we don't need to crop it to a
non-native subrectangle, as abs_x / abs_y / width / height are all 0.